<tagLib name="html" />
<div id="main-content">
    <div id="main" class="main">
        <!-- 修改密码 start -->
        <div class="spin-cont">
            <div class="user-hd">
                <h2>{$page_title}</h2>
            </div>
            <div class="user_zl" id="baseinfo_text">
                <dl class="clearfix">
                    <dt>用户名：</dt>
                    <dd>{$model.user_name}</dd>
                </dl>
                <dl class="clearfix">
                    <dt>姓名：</dt>
                    <dd>{$model.nick_name}</dd>
                </dl>
                <dl class="clearfix">
                    <dt>手机号码：</dt>
                    <dd>{$model.mobile}</dd>
                </dl>
<!--                 <dl class="clearfix">
                    <dt>分组：</dt>
                    <dd>
                        {$user_group_options[$model[group_id]]}
                    </dd>
                </dl>
                <dl class="clearfix">
                    <dt>创建时间：</dt>
                    <dd>
                        {$model.create_time|date="Y-m-d H:i", ###}
                    </dd>
                </dl> -->
                <dl class="clearfix">
                    <dt></dt>
                    <dd>
                        <a href="javascript:;" onclick="showBaseinfoForm()" class="gray-btn">修改资料</a>
                    </dd>
                </dl>
            </div>
            <div class="user_zl" id="baseinfo_form" style="display: none;">
                <form name="data_form" id="data_form" method="POST">
                <dl class="clearfix">
                    <dt>用户名：</dt>
                    <dd>{$model.user_name}</dd>
                </dl>
                <dl class="clearfix">
                    <dt>姓名：</dt>
                    <dd>
                        <input type="text" id="nick_name" name="nick_name" value="{$model.nick_name}" autocomplete="off" class="bg-input w229"/>
                        <input type="hidden" id="nick_name_std" value="{$model.nick_name}" />
                    </dd>
                    <dd class="error_message" id="message_nick_name"></dd>
                    <dd class="field_info" id="message_nick_name_info">请输入1-10个字母、数字、中文或下划线</dd>
                </dl>
                <dl class="clearfix">
                    <dt>手机号码：</dt>
                    <dd>
                        <input type="text" id="mobile" name="mobile" value="{$model.mobile}" autocomplete="off" class="bg-input w229"/>
                        <input type="hidden" id="mobile_std" value="{$model.mobile}" />
                    </dd>
                    <dd class="error_message" id="message_mobile"></dd>
                    <dd class="field_info" id="message_mobile_info">请输入可用的手机号码</dd>
                </dl>
<!--                 <dl class="clearfix">
                    <dt>分组：</dt>
                    <dd>
                        {$user_group_options[$model[group_id]]}
                    </dd>
                </dl> -->
                <dl class="clearfix">
                    <dt></dt>
                    <dd>
                        <a href="javascript:;" class="gray-btn" onclick="saveBaseinfo()">确定</a>
                        <a href="javascript:;" class="gray-btn" onclick="hiddenBaseinfoForm()">返回</a>
                    </dd>
                </dl>
                </form>
            </div>
        </div>
    </div>
</div>
<script language="javascript">
    //判断是否展示编辑框
    if ('baseinfoForm' == '{$option}') {
        showBaseinfoForm();
    }
</script>